// 通用响应类型
export interface ResponseData {
  code: number
  message: string
  data?: any
}

// 活动发布表单数据类型
export interface ActivityForm {
  title: string
  description: string
  startTime: string
  endTime: string
  location: string
  maxParticipants: number
  images: string[]
}

// 活动列表项
export interface ActivityItem {
  id: number
  title: string
  description: string
  startTime: string
  endTime: string
  location: string
  maxParticipants: number
  currentParticipants: number
  publisherId: number
  publisherName: string
  status: number
  createTime: string
  images: string[]
}

// 活动列表查询参数
export interface ActivityQueryParams {
  page: number
  size: number
  keyword?: string
  status?: number
}

// 活动列表响应
export interface ActivityListResponse extends ResponseData {
  data: {
    records: ActivityItem[]
    total: number
    page: number
    pageSize: number
  }
}

// 活动详情响应
export interface ActivityDetailResponse extends ResponseData {
  data: ActivityItem
}

// 报名表单
export interface EnrollForm {
  activityId: number
  contactInfo?: string
}

